//
// Created by Administrator on 2025/4/13/周日.
//
#include "iostream"

using namespace std;

int main() {
    int a = 10;
    int b = 20;
//    int &c ;不能这么写，因为引用必须初始化

    int &c = a;//一旦初始化后就不会发生改变，此时a和c是一个整体
    c = b;//这是直接赋值，将b的值直接传递给c(a)

    cout << "a = " << a << endl;
    cout << "b = " << b << endl;
    cout << "c = " << c << endl;
    return 0;

}